Expand description

This is a companion crate for iref providing two macros to build 'static IRIs and IRI references at compile time.

Basic usage

Use the iri! macro to build IRI statically, and the iref! macro to build IRI references statically.

extern crate iref;
#[macro_use]
extern crate static_iref;

use iref::{Iri, IriRef};

const IRI: Iri<'static> = iri!("https://www.rust-lang.org/foo/bar#frag");
const IREF: IriRef<'static> = iref!("/foo/bar#frag");

Macros

Build an IRI reference with a 'static lifetime at compile time.

Build an IRI with a 'static lifetime at compile time.